package high.concurrent.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "添加购物车", description = "添加购物车请求对象")
public class AddCartRequest {

    @JsonProperty("product_id")
    @ApiModelProperty(value = "商品id", example = "1")
    private Long productId;

    @JsonProperty("buy_num")
    @ApiModelProperty(value = "购买数量", example = "2")
    private Integer buyNum;
}
